package com.hist.medical_treatment.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hist.medical_treatment.service.LoginService;

@Controller
public class LoginController {
	 @Autowired
	 LoginService service;
	 
	 @ResponseBody
	 @RequestMapping("/checkUser")
         public Integer checkUser(String userName,String password) {
		 return service.checkUser(userName, password);
	 }
}
